package com.newyulong.implatform.adapter;


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;

import com.newyulong.implatform.R;

public class MyGridViewAdapter extends BaseAdapter {

	private static final int count = 6;
	LayoutInflater inflater;
	Context context;
	int[] icons={R.drawable.prizes_img,R.drawable.prizes_img,R.drawable.prizes_img,R.drawable.prizes_img,R.drawable.prizes_img,R.drawable.prizes_img};
	
	public MyGridViewAdapter(Context context){
		this.context = context;
		inflater = LayoutInflater.from(context);
	} 
	
	public int getCount() {
		return count;
	}

	public Object getItem(int position) {
		return null;
	}

	public long getItemId(int position) {
		return 0;
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		ImageView iv_image = new ImageView(context);
		iv_image.setBackgroundResource(icons[position]);
		return iv_image;
	}

}
